home *** CD-ROM | disk | FTP | other *** search
- $IF 0
- DWArcs version 1.2
- Written by James R. Davis
- (C) Copyright 1993 - All rights Reserved
-
- This library is a set of routines that will read in file data from
- any archive format. The following formats that are supported and version
- numbers are:
-
- ZIP - PKZIP up to version 2.04G
- ARC - PKARC up to version 5.10
- PAK - PKPAK up to version 2.51
- ZOO - Zoo up to version 2.1
- LZH - LHArc up to version 1.13c
- ARJ - ARJ up to version 2.39a BETA
-
- The following libraries are for the different PowerBASIC versions:
-
- DWARCS2F.PBU - For version 2.10f of PowerBASIC
- DWARCS3A.PBU - For version 3.00a of PowerBASIC
-
- A version for 3.00b of PowerBASIC will be released soon. See documentation
- for further information about this library and other info.
-
- $ENDIF
-
- $LINK "DWARCS2F.PBU" 'Link in our PBU
- PUBLIC Net% 'Declare Net% variable for networking
-
- CLS 'Clear the screen
- File$=UCASE$(COMMAND$) 'Use filename specified on command line
- PRINT "Archive: ";File$ 'Print initial information
- ArcFile$=ArcDir$(File$) 'Get the first filename from the archive
- WHILE ArcFile$<>"" 'Start loop, test ArcFile$
- PRINT ArcFile$, 'Print first filename
- 'Get inforamtion on file in archive, below
- CALL ArcInfo(File$,ArcFile$,FileDate$,FileTime$,FileSize$,CompSize$)
- PRINT FileSize$,CompSize$,FileDate$;" ";FileTime$;" ";
- 'Print compression percentage, below
- PRINT USING$("###%",100-INT((100/VAL(FileSize$))*VAL(CompSize$)))
- INCR TotalByte&&,VAL(FileSize$) 'Increment total actual filesizes
- INCR TotalComp&&,VAL(CompSize$) 'Increment total compressed filesizes
- ArcFile$=ArcDir$(File$) 'Get next filename in archive
- WEND 'Continue loop
- 'Print number of files in archive, etc
- PRINT ArcFiles%(File$);"Files Compressed:";TotalComp&&;" Actual:";TotalByte&&
-
- 'PRINT SearchArc%(File$,Search$) 'Use this if you want to find a file in
- 'an archive.
-